<template>
 <div class="app-container">
  <el-steps :active="active" finish-status="success">
    <el-step title="填写课程基本信息"></el-step>
    <el-step title="创建课程大纲"></el-step>
    <el-step title="最终发布"></el-step>
  </el-steps>
    <el-form ref="form" :model="form" label-width="120px">
      <el-form-item label="课程标题">
        <el-input v-model="form.title"/>
      </el-form-item>
      <el-form-item label="讲师">
        <el-select v-model="form.teacherId" placeholder="请选择讲师">
          <el-option label="王晓杰" value="1651428000831479809"/>
        </el-select>
      </el-form-item>
      
      
      <el-form-item label="课程简介">

        <quill-editor  
                v-model="form.description" 

             />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="next">保存并下一步</el-button>
        
      </el-form-item>
    </el-form>
 </div>
</template>

<script>
export default {
    data() {
    return {
      active: 0,
      form: {
        id:'',
        title: '',
        teacherId:'',
        subjectParentId: '',
        subjectId: '',
        price:0,
        lessonNum:'',
        cover:'',
        status:'Draft',
        description:''
        
      }
    }
  },
  methods: {
    next() {
        if (this.active++ > 2) this.active = 0;
        this.$router.push({path:'/course/chapter',query:{courseId:1}})
      },
   
    onCancel() {
      this.$message({
        message: 'cancel!',
        type: 'warning'
      })
    }
  }
}
</script>

<style>
 .ql-editor{
         height:400px;
     }
    .line{
    text-align: center;
    }
</style>